import request from '@/utils/request'

/*
 * ip 外部
 */

// 硬盘录像机列表
export function recorderIndex(url, params) {
  return request({
    url: url+'/prod-api/api/list',
    method: 'GET',
    params
  })
}

// 硬盘录像机下面摄像头
export function recorderCamera(url, params) {
  return request({
    url: url+'/prod-api/api/camera',
    method: 'GET',
    params
  })
}

// 开启直播
export function startPlay(url, params) {
  return request({
    url: url+'/prod-api/api/start_play',
    method: 'GET',
    params
  })
}

// 开始录制
export function startRecord(url, params) {
  return request({
    url: url+'/prod-api/api/start_record',
    method: 'GET',
    params
  })
}

// 结束录制/停止直播
export function stopRecord(url, params) {
  return request({
    url: url+'/prod-api/api/stop_record',
    method: 'GET',
    params
  })
}

// 添加视频记录
export function patrolAdd(data) {
  return request({
    url: '/patrol_video/add',
    method: 'POST',
    data:data
  })
}

// 视频列表
export function patrolIndex(params) {
  return request({
    url: '/patrol_video/index',
    method: 'GET',
    params
  })
}

// 视频巡班添加
export function patrol_video_log_Add(data) {
  return request({
    url: '/patrol_video_log/add',
    method: 'POST',
    data:data
  })
}

// 视频巡班记录
export function patrol_video_log_Index(params) {
  return request({
    url: '/patrol_video_log/index',
    method: 'GET',
    params
  })
}

// 视频巡班记录删除
export function patrol_video_log_delete(data) {
  return request({
    url: '/patrol_video_log/delete',
    method: 'POST',
    data:data
  })
}
